<?php

function ass($value) {
	return $value = is_array($value) ? array_map('ass', $value) : addslashes($value);
}



/*
get the value of the URL controller
*/
function get_c(){
	$controller = $_GET['c'];
	
	return $controller;
}

/*
get the value of the URL action 
*/
function get_a(){
	$action = $_GET['a'];
	
	return $action;
}

/*
get the value of the URL group 
*/
function get_g(){
	$group = $_GET['g'];
	
	return $group;
}


/*
get the value of the URL parameter 
*/
function get_p($p){
	//$parameter = $_GET['p'];
	
	//return $parameter;
}


/*show error */
function error($msg=''){
	$msg = $msg ? $msg : 'Error !'; 
	echo $msg;
	
	exit;
}
?>